// This example requires ECharts v5.5.0 or later
let sjwhOption = {
    // background:{
    //   type: 'image',
    //   image: ''
    // },
    tooltip: {
        trigger: 'item'
    },
    title:[{
        text: '1329',
        right: '42%',
        bottom: '40%',
        textStyle: {
            color: '#000',
            fontStyle: 'normal',
            fontWeight: '400',
            fontFamily: 'Times New Roman',
            fontSize: 40
        }
    },{
        text: '应维护记录',
        right: '42%',
        bottom: '30%',
        textStyle: {
            color: '#000',
            fontStyle: 'normal',
            fontWeight: '400',
            fontFamily: 'Times New Roman',
            fontSize: 16
        }
    }],
    series: [
        {
            name: '数据维护',
            type: 'pie',
            color: [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                        {offset: 0, color: '#FEDB65'},
                        {offset: 1, color: '#44D7B6'}
                    ]), '#A2F5FDFF'],
            radius: ['90%', '120%'],
            center: ['50%', '70%'],
            label:{
                show: false
            },
            labelLine: {
                show: false
            },
            startAngle: 180,
            endAngle: 360,
            data: [
                { value: 1048, name: '已维护' },
                { value: 735, name: '已停用' },
            ]
        }
    ]
};

echarts.init(document.getElementById('sjwh')).setOption(sjwhOption, true);
